package cst.a816wzj.zyfypt_816wzj;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/5/10.
 */

public interface ResService {
    @GET("api.php/login")
    Call<LoginBean> login(@Query("username") String username,
                          @Query("password") String password);
    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>>getvideoList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String SessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>>getArticleList(@Path("mod") String mod,
                                          @Query("page") int page,
                                          @Header("SessionID") String SessionID);
    Call<List<TwareBean>>getTwareList(@Path("mod") String mod,
                                          @Query("page") int page,
                                          @Header("SessionID") String SessionID);
    //    reg();
//    getDetail();
}
